# Copyright 2004 PAFSoft S.A.
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: Pascal Fleury <fleury@users.sourceforge.net>
# $Header:$

S="${WORKDIR}/${PN}-1.2"
DESCRIPTION="XPath extension to Xerces-C"
SRC_URI="http://software.decisionsoft.com/software/pathan-1.2r2/libpathan-1.2-2-src.tar.gz"
#        http://software.decisionsoft.com/software/pathan-1.2r2/${P}-src.tar.gz"
HOMEPAGE="http://software.decisionsoft.com/pathanIntro.html"
LICENSE="GPL-2"

DEPEND=">=xerces-c-2.6.0"

KEYWORDS="x86"

src_compile() {
	XERCESCROOT=/usr \
	./configure \
		--host=${CHOST} \
		--prefix=/usr \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man || die "./configure failed"
	emake || die
}

src_install () {
	make DESTDIR=${D} install || die
	dodoc CREDITS LICENSE.TXT Projects README
}
